package model;

public class ClassInfo {
    private int id;
    private String className;
    private String grade;
    private String teacher;
    private int studentCount;
    private String description;

    public ClassInfo(int id, String className, String grade, String teacher, int studentCount, String description) {
        this.id = id;
        this.className = className;
        this.grade = grade;
        this.teacher = teacher;
        this.studentCount = studentCount;
        this.description = description;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getClassName() { return className; }
    public void setClassName(String className) { this.className = className; }
    public String getGrade() { return grade; }
    public void setGrade(String grade) { this.grade = grade; }
    public String getTeacher() { return teacher; }
    public void setTeacher(String teacher) { this.teacher = teacher; }
    public int getStudentCount() { return studentCount; }
    public void setStudentCount(int studentCount) { this.studentCount = studentCount; }
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
}
//定义班级信息，包括ID、班级名称、年级、班主任、学生人数和描述。